package com.ocom.mjrecode.controller;


import com.ocom.common.constant.MjRecodeUrl;
import com.ocom.common.request.exposeapi.LargeScreenRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.utils.ResultUtil;
import com.ocom.mjrecode.service.MjRecodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2024年3月27日10:33:33
 **/
@RestController
public class LargeScreenController {

    @Autowired
    MjRecodeService mjRecodeService;

    @PostMapping(MjRecodeUrl.URLR_todayAcTotal)
    public Result todayAcTotal(@RequestBody LargeScreenRequest request){
        return ResultUtil.success(mjRecodeService.todayAcTotal(request));
    }

    @PostMapping(MjRecodeUrl.URLR_recentlyAcTotal)
    public Result recentlyAcTotal(@RequestBody LargeScreenRequest request){
        return ResultUtil.success(mjRecodeService.recentlyAcTotal(request));
    }

    @PostMapping(MjRecodeUrl.URLR_todayHighFrequencyAcPerson)
    public Result todayHighFrequencyAcPerson(@RequestBody LargeScreenRequest request){
        return ResultUtil.success(mjRecodeService.todayHighFrequencyAcPerson(request));
    }

    @PostMapping(MjRecodeUrl.URLR_recentlyAcTime)
    public Result recentlyAcTime(@RequestBody LargeScreenRequest request){
        return ResultUtil.success(mjRecodeService.recentlyAcTime(request));
    }

    @PostMapping(MjRecodeUrl.URLR_entryExitRecords)
    public Result entryExitRecords(@RequestBody LargeScreenRequest request){
        return ResultUtil.success(mjRecodeService.entryExitRecords(request));
    }
}
